package com.yungu.swift.common.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.PageVo;
import com.yungu.swift.base.model.admin.AdminParam;
import com.yungu.swift.base.service.BaseService;
import com.yungu.swift.common.model.dto.CommonSystemMessageDto;
import com.yungu.swift.common.model.param.AdminNoticePageParam;
import com.yungu.swift.common.model.param.AdminNoticeParam;

/**
 * Copyright © 厦门云谷互联信息有限公司 2016-2017 All Right Reserved
 * <p>
 * 系统消息表
 *
 * @author Zerrion
 * @version 1.0.3-RELEASE
 * @since 2018-12-22 16:00:05
 */
public interface CommonSystemMessageService extends BaseService<CommonSystemMessageDto> {

    /**
     * 用户查询未阅读的系统消息数
     *
     * @param adminParam
     * @return
     */
    ResponseData<Integer> sysUnreadNum(AdminParam adminParam);

    /**
     * 用户分页查询系统消息
     *
     * @param pageParam
     * @return
     */
    ResponseData<PageVo<CommonSystemMessageDto>> sysQueryPage(AdminNoticePageParam pageParam);

    /**
     * 公告新增或编辑
     *
     * @param adminNoticeParam
     * @return
     */
    ResponseData<Boolean> saveOrUpdate(AdminNoticeParam adminNoticeParam);
}